<template>
  <div>
    <!-- 顶部通栏 -->
    <AppNavbar />
    <!-- 吸顶头部 -->
    <AppHeaderSticky />
    <!-- 头部组件 -->
    <AppHeader />
    <!-- 内容容器 -->
    <div class="main">
      <router-view />
    </div>
    <!-- 底部组件 -->
    <AppFooter />
  </div>
</template>

<script>
import AppNavbar from '@/components/app-navbar.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'

export default {
  components: {
    AppNavbar,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup() {
    const store = useStore()
    store.dispatch('category/getList')

    return {

    }
  }
}
</script>

<style lang="less" scoped>
.main {
  min-height: 600px;
}
</style>
